<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>查询水果价格</title>
    <script>
        var fruit = prompt('你想查哪个果儿？');
        switch (fruit) {
            case 'apple':
                alert('pay apple have 三块五一斤');
                break;
            case '臭果果':
                alert('pay 臭果果 have 35/斤 ');
                break
            case '香梨':
                alert('香喷喷的梨儿只要三块钱一斤');
                break;
            case '火龙果':
                alert('吃了包拉肚子的，买一送一！');
                break;
                defult:
                    alert('没有这个果，你走吧');
        }
    </script>
</head>

<body>

</body>

</html>